/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package chapter5.creational.abstractfactory;

import chapter5.creational.factorymethod.Animal;

/**
 *
 * @author ASUS
 */
public abstract class AbstractFactory {
    public SpeciesFactory getSpeciesFactory(String type)
    {
        if("mammal".equals(type))
        {
            return new MammalFactory();
        }
        else
        {
            return new ReptileFactory();
        }
    }
     
}
